﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Test0407
{
    class Employee
    {
        public decimal wage;
        public decimal allowence;
        public decimal bonus;
        public Employee()
        {
            this.wage = 1000;
        }
        public Employee(decimal Wage, decimal Allowence)
        {
            this.wage = Wage;
            this.allowence = Allowence;
        }
        public Employee(decimal Wage, decimal Allowence, decimal Bonus)
        {
            this.wage = Wage;
            this.allowence = Allowence;
            this.bonus = Bonus;
        }


        public void ComputeSalary()
        {
            decimal sum = wage + allowence + bonus;
            Console.WriteLine("该员工工资为{0}", sum);
        }
    }
}